< previous page
page_202
next page >
Page 202
Trim$( )
Trim$()
removes both leading and trailing spaces from a string. Heres an example:
Me.Print Trim$(" HI THERE ") ' Prints "HI THERE"
RTrim$( )
RTrim$()
removes trailing spaces from a string. Heres an example:
Me.Print RTrim$(" HI THERE ") ' Prints " HI THERE"
LTrim$( )
LTrim$()
removes leading spaces from a string. Heres an example:
Me.Print RTrim$(" HI THERE ") ' Prints "HI THERE "
Str$( )
Str$()
returns a string from a numeric expression. Heres an example:
strNumber = Str$(100) ' Returns "100"
UCase$( )
UCase$()
returns a string in all uppercase letters. Heres an example:
Me.Print UCase$("Bill Gates") ' Returns "BILL GATES"
LCase$( )
LCase$()
returns a string in all lowercase letters. Heres an example:
Me.Print LCase$("BILL GATES") ' Returns "bill gates"
Space$( )
Space$()
returns a specified amount of spaces in a string. Heres an example:
strSpace = Space$(50) ' strSpace will be equal to 50 spaces
Me.Print Len(strSpace) ' Prints 50
< previous page
page_202
next page >
If you like this book, buy it!